Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local attrbiutes #102

Merged
merged 7 commits into from
Nov 30, 2023
Merged

local attrbiutes #102

merged 7 commits into from
Nov 30, 2023

Conversation

duoertai
Copy link
Collaborator

Why make this pull request?

[Explain why you are making this pull request and what problem it solves.]

What has changed

[Summarize what components of the repo is updated]

[Link to xdb-apis/sdk-go PRs if it's on top of any API changes]

  • API change link: ...
  • Golang SDK change link: ...
  • Server Component 1: ...
  • Server Component 2: ...

How to test this pull request?

[If writing Integration test in Golang SDK repo, please provide link to the pull request of Golang SDK Repo]

[It's recommended to write integration test in Golang SDK repo, and enabled in this server repo first,
without enabling in the SDK repo. After this PR is merged, enable and merge the integration test in the SDK repo]

[Alternatively if Java/other SDK repo is preferred, then just test locally against server PR.
After the server PR is merged, merge the integration test in the SDK repo]

Checklist before merge

[ ] If applicable, merge the xdb-apis/sdk-go PRs to main branch
[ ] If applicable, merge the xdb-apis/xdb-apis PRs to main branch
[ ] Update go.mod to use the commitID of the main branches for xdb-apis/sdk-go

xcapi.EXECUTE_API)
}
}
loadedLocalAttributesResp, errToCheck := w.loadLocalAttributesIfNeeded(ctx, prep, task)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's okay to use separate txn to load for now. but fyi, we will need to evolve to this later:
#93
and
#103

extensions/postgres/schema/xcherry_sys_schema.sql Outdated Show resolved Hide resolved
extensions/postgres/transactional.go Outdated Show resolved Hide resolved
persistence/sql/load_local_attributes.go Outdated Show resolved Hide resolved
persistence/sql/start_process.go Outdated Show resolved Hide resolved
service/api/service_impl.go Outdated Show resolved Hide resolved
@longquanzheng longquanzheng marked this pull request as ready for review November 29, 2023 20:27
Copy link
Contributor

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feel free to merge when you feel like you have addressed all the comments. I will continue to work on top of it after you merge.

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 72 lines in your changes are missing coverage. Please review.

Comparison is base (d1c0df9) 63.10% compared to head (8f4616b) 63.10%.

❗ Current head 8f4616b differs from pull request most recent head cb30be5. Consider uploading reports for the commit cb30be5 to get more accurate results

Files Patch % Lines
engine/immediate_task_conrrent_processor.go 60.24% 30 Missing and 3 partials ⚠️
persistence/sql/write_local_attributes.go 67.50% 9 Missing and 4 partials ⚠️
persistence/sql/load_local_attributes.go 67.85% 6 Missing and 3 partials ⚠️
persistence/sql/complete_execute.go 52.94% 7 Missing and 1 partial ⚠️
persistence/sql/start_process.go 57.14% 4 Missing and 2 partials ⚠️
extensions/postgres/non_transactional.go 66.66% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
- Coverage   63.10%   63.10%   -0.01%     
==========================================
  Files          81       85       +4     
  Lines        6145     6331     +186     
==========================================
+ Hits         3878     3995     +117     
- Misses       2021     2077      +56     
- Partials      246      259      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@duoertai duoertai merged commit 9b9ccac into main Nov 30, 2023
3 checks passed
@duoertai duoertai deleted the local-attribute branch November 30, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants